
var prodplugins = []
// 如果实在 打包的成品阶段运行项目 就移除所有console
if (process.env.NODE_ENV == 'production') {
  prodplugins.push("transform-remove-console")
}


module.exports = {
  "presets": [
    "@vue/app"
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],
    ...prodplugins,
    "@babel/plugin-syntax-dynamic-import"
  ]
}